package com.gzs.learn.payment.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.gzs.learn.payment.inf.dto.web.req.PaymentSearchDto;
import com.gzs.learn.payment.model.po.Payment;
import org.apache.ibatis.annotations.Param;

public interface PaymentMapper extends BaseMapper<Payment> {
	/**
	 * 查询支付请求
	 *
	 * @param serial 支付请求ID
	 * @return 支付请求
	 */
	Payment selectPaymentById(Long serial);

	/**
	 * 查询支付请求列表
	 *
	 * @param page    分页参数
	 * @param payment 支付请求
	 * @return 支付请求集合
	 */
	IPage<Payment> selectPaymentList(Page<?> page, @Param("payment") PaymentSearchDto payment);

}
